package com.hxy.manager.entity;

import androidx.annotation.NonNull;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Generated;

/**
 * Created by admin-home on 2017/12/31.
 */
@Entity
public class GoodsEntity {
    /**
     * 本地CRUD操作
     */
    @Id
    private Long id;
    /**
     * 书签号，唯一标识
     */
    private String number;//条形码
    private String name;//书名
    private String price;//价格
    private String press;//出版社
    private String date;//出版日期
    private String author;//作者
    private String location;//存放位置
    /**
     * 最新时间，服务器更新用，unix时间戳
     */
    private Long updateTime;//
    /**
     * 数据新建时间，unix时间戳
     */
    private Long createTime;

    @Generated(hash = 591080761)
    public GoodsEntity(Long id, String number, String name, String price,
                       String press, String date, String author, String location,
                       Long updateTime, Long createTime) {
        this.id = id;
        this.number = number;
        this.name = name;
        this.price = price;
        this.press = press;
        this.date = date;
        this.author = author;
        this.location = location;
        this.updateTime = updateTime;
        this.createTime = createTime;
    }

    @Generated(hash = 223916156)
    public GoodsEntity() {
    }

    public Long getUpdateTime() {
        return this.updateTime;
    }

    public void setUpdateTime(Long updateTime) {
        this.updateTime = updateTime;
    }

    public String getLocation() {
        return this.location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getAuthor() {
        return this.author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getDate() {
        return this.date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getPress() {
        return this.press;
    }

    public void setPress(String press) {
        this.press = press;
    }

    public String getPrice() {
        return this.price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNumber() {
        return this.number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getCreateTime() {
        return this.createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }


    @NonNull
    @Override
    public String toString() {
        return "id=" + id + "name=" + name;
    }
}
